package com.ym.medical.dao;

import com.ym.medical.domain.entity.SysCodeRuleEntity;
import com.ym.medical.domain.param.SysCodeRuleQueryParam;
import com.ym.medical.domain.vo.SysCodeRuleListPcVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 编码生产Dao接口
 *
 * @author ym
 * @date 2020-08-17
 */
@Repository
public interface SysCodeRuleDao extends Mapper<SysCodeRuleEntity>{

    /**
     * 查询编码生产列表,PC专用不要轻易混用更改
     *
     * @param queryParam  编码生产查询参数
     * @return 编码生产集合
     */
    List<SysCodeRuleListPcVO> selectListPC(SysCodeRuleQueryParam queryParam);

    /**
     *根据订单号查询订单号规则
     * @param outTradeNo
     * @return
     */
    String selectByIoNum(@Param("outTradeNo") String outTradeNo);
}
